import 'package:car_map/page/morepage/platform_page.dart';
import 'package:car_map/page/morepage/setting_page.dart';
import 'package:car_map/page/routers/router_init.dart';
import 'package:fluro/fluro.dart';
import 'package:fluro/src/router.dart';

import '../index_page.dart';
import 'about_page.dart';
import 'account_page.dart';
import 'annouce_page.dart';
import 'backstage_page.dart';

class MoreRouter extends IRouterProvider{

  //跳转到Main
  static String indexPage='/indexPage';
  //账号信息
  static String accountPage='/accountPage';
  //关于信息
  static String aboutPage='/aboutPage';
  //平台消息
  static String platformPage='/platformPage';
  //后台管理
  static String backstagePage='/backstagePage';
  //发布公告
  static String annoucePage='/annoucePage';
  //设置
  static String settingPage='/settingPage';

  @override
  void initRouter(Router router) {
    // TODO: implement initRouter
    router.define(indexPage, handler: Handler(handlerFunc: (_,params){
      return IndexPage();
    }));

    router.define(accountPage, handler: Handler(handlerFunc: (_,params){
      return AccountPage();
    }));

    router.define(aboutPage, handler: Handler(handlerFunc: (_,params){
      return AboutPage();
    }));

    router.define(platformPage, handler: Handler(handlerFunc: (_,params){
      return PlatformPage();
    }));

    router.define(backstagePage, handler: Handler(handlerFunc: (_,params){
      return BackstagePage();
    }));

    router.define(annoucePage, handler: Handler(handlerFunc: (_,params){
      return AnnoucePage();
    }));

    router.define(settingPage, handler: Handler(handlerFunc: (_,params){
      return SettingPage();
    }));

  }
}